package demo4;

class Dog {
    public String name;
    public int age;
    public void eat() {
        System.out.println(this.name + "正在吃饭!");
    }
    public void sleep(){
        System.out.println(name + "正在睡觉");
    }
    public void bark() {
        System.out.println(this.name + "正在汪汪叫！");
    }
}
class Cat {
    public String name;
    public int age;
    public void eat() {
        System.out.println(this.name + "正在吃饭!");
    }
    public void sleep(){
        System.out.println(name + "正在睡觉");
    }
    public void mew() {
        System.out.println(this.name + "正在喵喵叫！");
    }
}

public class Test {

}
